<%@ Page Language="VB" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="false" CodeFile="DataLoad.aspx.vb" Inherits="Admin_DataLoad" title="Admin - Data Load Fields" %>
<%@ Register Src="SubNavControls/FieldsSubNavControl.ascx" TagName="FieldsSubNavControl" TagPrefix="uc1" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <uc1:FieldsSubNavControl ID="SubNavCtrl" runat="server" />

     <table cellpadding="0" cellspacing="0">
       <tr><td width="20px" rowspan="3"></td>
       <td><h1><a id="pagecontent">Admin - Data Load Fields</a></h1></td>
       <td style="width:450px" align="left"><asp:Label ID="FileLabel" runat="server" AssociatedControlID="FileDropDownList" Text="Select Screen:" CssClass="adminSelectLabel"></asp:Label>
    <asp:DropDownList ID="FileDropDownList" runat="server" CssClass="adminSelectForm" DataTextField="DisplayName" DataValueField="TableId" AutoPostBack="false">
    </asp:DropDownList>
    <asp:Button ID="SubmitFileButton" runat="server" Text="Go" />
    </td>
    </tr>
    <tr style="height:10px">
    <td colspan="2" align="center"></td></tr>
    <tr valign="top">
    <td align="center">
    <cc2:ScrollingGridView ID="DataLoadScrollingGridView" runat="server" CssClass="gridOffsetSmall" IsFixedColumn="true" AutoGenerateColumns="False" Caption="Check the fields that are to be included in the data load, and click Save to commit your changes." CaptionAlign="Top"  Tooltip="180"
            DataKeyNames="RequiredFieldID" CellPadding="5" BorderColor="#21334B"
                BorderStyle="Solid" GridLines="Vertical" EmptyDataText="No data for this table and role." AllowSorting="true">
        <HeaderStyle  CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="adminColumnStyle" />
        <Columns>
            <asp:TemplateField HeaderText="Field Name" SortExpression="fieldName">
            <ItemStyle Width="194px" />
            <HeaderStyle Width="200px" />
            <ItemTemplate><%#Eval("FieldDisplayName")%></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Include in Data Load">
            <ItemStyle Width="160px" HorizontalAlign="center" />
            <HeaderStyle Width="200px" />
            <ItemTemplate>
                 <asp:CheckBox ID="IsIncludedCheckBox" runat="server" ToolTip="Check if field is to be included in Data Load." />
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <AlternatingRowStyle BackColor="#E8ECF4" />
        <EmptyDataRowStyle CssClass="headerStyle" BackColor="#C3CAD4" /></cc2:ScrollingGridView>
 </td>
 <td>
        <cc2:ScrollingGridView ID="SpecialFieldsScrollingGridView" runat="server" CssClass="gridOffset" IsFixedColumn="true" AutoGenerateColumns="False" Caption="Special Fields" DataKeyNames="SpecialFieldID" CellPadding="5" BorderColor="#21334B" ToolTip="180"
                BorderStyle="Solid" GridLines="Vertical" EmptyDataText="This screen has no special fields." AllowSorting="false">
        <HeaderStyle  CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="adminColumnStyle" />
        <Columns>
        <asp:TemplateField HeaderText="Field Name" SortExpression="FieldName">
          <ItemStyle Width="194px" />
            <HeaderStyle Width="210px" />
            <ItemTemplate>
                <%#Eval("FieldName")%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Include in Data Load">
          <ItemStyle Width="180px" HorizontalAlign="center" />
            <HeaderStyle Width="230px" />
            <ItemTemplate>
                 <asp:CheckBox ID="IsIncludedCheckBox" runat="server" ToolTip="Check if field is to be included in Data Load." />
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <AlternatingRowStyle BackColor="#E8ECF4" />
        <EmptyDataRowStyle CssClass="headerStyle" BackColor="#C3CAD4" />
        </cc2:ScrollingGridView>
       
 </td>
    </tr>
    </table>
</asp:Content>

<asp:Content ID="FixedContent" runat="server" ContentPlaceHolderID="ContentPlaceHolderFixedAdmin">
    <asp:Button ID="SaveButton" runat="server" Text="Save" />
</asp:Content>

